<el-form ref="form" :model="form" :rules="rules" label-width="140px">
    <el-row :gutter="10">
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="客户编号" prop="MMRA001">
                <el-input clearable v-model="form.MMRA001" :disabled="!isAdd" readOnly @clear="clearMmra001">
                    <i v-show="isAdd" class="el-icon-search el-input__icon" @click="openKh" slot="suffix">
                    </i>
                </el-input>
                <!--<el-input v-model="form.MMRA001" :readOnly="!isAdd"></el-input>-->
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="客户姓名">
                <el-input v-model="form.GWAKL004" readOnly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="客户联系人">
                <el-input v-model="form.GWAK031" readOnly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="客户联系电话">
                <el-input v-model="form.GWAK030" readOnly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="设备编号" prop="MMRA002">
                <!--<el-input v-model="form.MMRA002"></el-input>-->
                <el-input clearable v-model="form.MMRA002" :disabled="!isAdd" readOnly @clear="clearMmra002">
                    <i v-show="isAdd" class="el-icon-search el-input__icon" @click="openCp" slot="suffix">
                    </i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="品名" prop="MMRA004">
                <el-input v-model="form.MMRA004" readOnly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="规格" prop="MMRA006">
                <el-input v-model="form.MMRA006" readOnly></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="产品序列号" prop="MMRA003">
                <el-input v-model="form.MMRA003"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="发货单号" prop="MMRA009">
                <el-input v-model="form.MMRA009"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="销售日期" prop="MMRA010">
                <el-date-picker
                        type="date"
                        v-model="form.MMRA010"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="安装日期" prop="MMRA011">
                <el-date-picker
                        type="date"
                        v-model="form.MMRA011"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <!--<el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="制造日期">
                <el-date-picker
                        type="date"
                        v-model="form.MMRA008"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>-->
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="是否有保修" prop="MMRA013">
                <el-select clearable v-model="form.MMRA013">
                    <el-option v-for="item in selectOptions.sys_1_0" :label="item.value" :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="三包到期日期" prop="MMRA012">
                <el-date-picker
                        type="date"
                        v-model="form.MMRA012"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <!--<el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="项目编号">
                <el-input clearable v-model="form.MMRA044" readOnly>
                    <i class="el-icon-search el-input__icon" @click="openXm" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="合同编号">
                <el-input v-model="form.MMRA045"></el-input>
            </el-form-item>
        </el-col>-->
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="设备销售方" prop="MMRA017_NAME">
                <!--<el-input v-model="form.MMRA017"></el-input>-->
                <el-input clearable v-model="form.MMRA017_NAME" readOnly>
                    <i class="el-icon-search el-input__icon" @click="openMmra017" slot="suffix">
                    </i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="设备制造厂商">
                <el-input v-model="form.MMRA018"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="业务员姓名">
                <el-input clearable v-model="form.MMRA042_NAME">
                    <i v-show="isAdd" class="el-icon-search el-input__icon" @click="openMmra042" slot="suffix">
                    </i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="业务员手机号">
                <el-input v-model="form.MMRA043"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="负责经销商">
                <el-input v-model="form.MMRA020"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="销售员微信号">
                <el-input v-model="form.MMRA021"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="有效否" prop="MMRAACTI">
                <el-select clearable v-model="form.MMRAACTI">
                    <el-option v-for="item in selectOptions.sys_y_n" :label="item.value" :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
<!--        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">-->
<!--            <el-form-item label="照片地址">-->
<!--                <el-input v-model="form.MMRA019"></el-input>-->
<!--            </el-form-item>-->
<!--            <el-form-item label="照片地址" class="c-upload-text">-->
<!--                <el-input v-model="form.MMRA019"></el-input>-->
<!--                <el-upload-->
<!--                        class="upload-demo"-->
<!--                        ref="upload1"-->
<!--                        v-model="form.MMRA019"-->
<!--                        action="/crm/upload/imgs"-->
<!--                        :before-upload="beforeUploadImg"-->
<!--                        :on-preview="handlePreview"-->
<!--                        :on-remove="handleRemove"-->
<!--                        :limit="1"-->
<!--                        :on-exceed="handleExceedImg"-->
<!--                        :on-success="successUploadImg"-->
<!--                        :auto-upload="false">-->
<!--                    <el-button slot="trigger" size="small" type="primary">选取图片</el-button>-->
<!--                </el-upload>-->
<!--            </el-form-item>-->
<!--        </el-col>-->
        <el-col :xs="24" :sm="16" :md="16" :lg="16" :xl="16">
            <el-form-item label="备注">
                <el-input v-model="form.MMRA016"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancel">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" @click="sure">保存</el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/gwai610_edit"], $.noop);
</script>
